/**
 * 
 */
package com.oolong.account.model;

import java.math.BigDecimal;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 支出项
 * 
 * @author oolong
 * 
 */
public class OutItemModel {
	private int id;
	private Date date;
	private String memo;
	private BigDecimal money;
	private OutTypeModel outType;
	private UserModel user;

	public String covertDate() {
		DateFormat format1 = new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");
		return format1.format(date);
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @param date
	 *            the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}

	/**
	 * @return the memo
	 */
	public String getMemo() {
		return memo;
	}

	/**
	 * @param memo
	 *            the memo to set
	 */
	public void setMemo(String memo) {
		this.memo = memo;
	}

	/**
	 * @return the money
	 */
	public BigDecimal getMoney() {
		return money;
	}

	/**
	 * @param money
	 *            the money to set
	 */
	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	/**
	 * @return the outType
	 */
	public OutTypeModel getOutType() {
		return outType;
	}

	/**
	 * @param outType
	 *            the outType to set
	 */
	public void setOutType(OutTypeModel outType) {
		this.outType = outType;
	}

	/**
	 * @return the user
	 */
	public UserModel getUser() {
		return user;
	}

	/**
	 * @param user
	 *            the user to set
	 */
	public void setUser(UserModel user) {
		this.user = user;
	}

}
